package io.renren.modules.member.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("physical_exam")
public class ExamEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String SQL_COLUMN = "id,exam_code,exam_date,student_code,age,height,weight,bmi,shape_level," +
            "lead_up,crank_arm,crank_arm_score,push_up,push_up_score,sit_up,sit_up_score,snake_run,snake_run_score,middle_run,middle_run_score," +
            "total_score,level,circle,create_date,update_date ";

    @TableId
    private Long id;
    /**
     * 测验CODE
     */
    private String examCode;

    // private String flag;

    /**
     * 测验时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date examDate;

    private String studentCode;

    private Integer age;

    private BigDecimal height;

    private BigDecimal weight;

    private BigDecimal bmi;

    private String shapeLevel;

    private Integer leadUp;

//    private BigDecimal leadUpScore;

    private BigDecimal crankArm;

    private BigDecimal crankArmScore;

    private Integer pushUp;

    private BigDecimal pushUpScore;

    private Integer sitUp;

    private BigDecimal sitUpScore;

    private BigDecimal snakeRun;

    private BigDecimal snakeRunScore;

    private BigDecimal middleRun;

    private BigDecimal middleRunScore;

    private BigDecimal totalScore;

    private String level;

    private Integer circle;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;
}
